package com.ys.entity.sys;


import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_ButtonState", catalog="guid")
public class TsButtonState extends BaseEntity<TsButtonState> {

	@YsField(nameDataBase="guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="ModuleTable", nameJava="moduleTable", typeDataBase="varchar")
	private String moduleTable;
	@YsField(nameDataBase="ButName", nameJava="butName", typeDataBase="varchar")
	private String butName;
	@YsField(nameDataBase="ButState", nameJava="butState", typeDataBase="varchar")
	private String butState;
	@YsField(nameDataBase="ButCaption", nameJava="butCaption", typeDataBase="varchar")
	private String butCaption;
	@YsField(nameDataBase="MinUserLevel", nameJava="minUserLevel", typeDataBase="int")
	private Integer minUserLevel;
	@YsField(nameDataBase="AlwaysEnableUserLevel", nameJava="alwaysEnableUserLevel", typeDataBase="int")
	private Integer alwaysEnableUserLevel;
	@YsField(nameDataBase="ExceptForUser", nameJava="exceptForUser", typeDataBase="varchar")
	private String exceptForUser;
	@YsField(nameDataBase="ExceptForRole", nameJava="exceptForRole", typeDataBase="varchar")
	private String exceptForRole;
	@YsField(nameDataBase="ModuleTable2", nameJava="moduleTable2", typeDataBase="varchar")
	private String moduleTable2;
	@YsField(nameDataBase="FlowEnable", nameJava="flowEnable", typeDataBase="varchar")
	private String flowEnable;
	@YsField(nameDataBase="FlowDisable", nameJava="flowDisable", typeDataBase="varchar")
	private String flowDisable;

	public String getguid() {
		return guid;
	}
	public TsButtonState setguid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getModuleTable() {
		return moduleTable;
	}
	public TsButtonState setModuleTable(String moduleTable) {
		this.moduleTable = moduleTable;
		return this;
	}
	public String getButName() {
		return butName;
	}
	public TsButtonState setButName(String butName) {
		this.butName = butName;
		return this;
	}
	public String getButState() {
		return butState;
	}
	public TsButtonState setButState(String butState) {
		this.butState = butState;
		return this;
	}
	public String getButCaption() {
		return butCaption;
	}
	public TsButtonState setButCaption(String butCaption) {
		this.butCaption = butCaption;
		return this;
	}
	public Integer getMinUserLevel() {
		return minUserLevel;
	}
	public TsButtonState setMinUserLevel(Integer minUserLevel) {
		this.minUserLevel = minUserLevel;
		return this;
	}
	public Integer getAlwaysEnableUserLevel() {
		return alwaysEnableUserLevel;
	}
	public TsButtonState setAlwaysEnableUserLevel(Integer alwaysEnableUserLevel) {
		this.alwaysEnableUserLevel = alwaysEnableUserLevel;
		return this;
	}
	public String getExceptForUser() {
		return exceptForUser;
	}
	public TsButtonState setExceptForUser(String exceptForUser) {
		this.exceptForUser = exceptForUser;
		return this;
	}
	public String getExceptForRole() {
		return exceptForRole;
	}
	public TsButtonState setExceptForRole(String exceptForRole) {
		this.exceptForRole = exceptForRole;
		return this;
	}
	public String getModuleTable2() {
		return moduleTable2;
	}
	public TsButtonState setModuleTable2(String moduleTable2) {
		this.moduleTable2 = moduleTable2;
		return this;
	}
	public String getFlowEnable() {
		return flowEnable;
	}
	public TsButtonState setFlowEnable(String flowEnable) {
		this.flowEnable = flowEnable;
		return this;
	}
	public String getFlowDisable() {
		return flowDisable;
	}
	public TsButtonState setFlowDisable(String flowDisable) {
		this.flowDisable = flowDisable;
		return this;
	}

	public static TsButtonState tsButtonState(
		String guid,
		String moduleTable,
		String butName,
		String butState,
		String butCaption,
		Integer minUserLevel,
		Integer alwaysEnableUserLevel,
		String exceptForUser,
		String exceptForRole,
		String moduleTable2,
		String flowEnable,
		String flowDisable
			) {
		TsButtonState entity = new TsButtonState();
		entity.setguid(guid);
		entity.setModuleTable(moduleTable);
		entity.setButName(butName);
		entity.setButState(butState);
		entity.setButCaption(butCaption);
		entity.setMinUserLevel(minUserLevel);
		entity.setAlwaysEnableUserLevel(alwaysEnableUserLevel);
		entity.setExceptForUser(exceptForUser);
		entity.setExceptForRole(exceptForRole);
		entity.setModuleTable2(moduleTable2);
		entity.setFlowEnable(flowEnable);
		entity.setFlowDisable(flowDisable);
		return entity;
	}
}